home *** CD-ROM | disk | FTP | other *** search
- Path: locutus.rchland.ibm.com!usenet
- From: pstaite@vnet.ibm.com
- Newsgroups: comp.lang.c++
- Subject: Re: Help in DOS functions and in graphics
- Date: 16 Jan 1996 15:19:50 GMT
- Organization: IBM OS/2 Device Driver Development Rochester, MN
- Message-ID: <4dgfmm$11p2@locutus.rchland.ibm.com>
- References: <1770F7283S85.UZS7FC@ibm.rhrz.uni-bonn.de>
- Reply-To: pstaite@vnet.ibm.com
- NNTP-Posting-Host: warpone.rchland.ibm.com
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <1770F7283S85.UZS7FC@ibm.rhrz.uni-bonn.de>, UZS7FC@ibm.rhrz.uni-bonn.de (Michael Kuesters) writes:
-
- >1) I.E. I want to create my own DOS-shell under C++. How do I boot and start
- >EXE's from C++(i mean, from my program, of course)
-
- Not really a general C++ question but...
-
- Put a line:
-
- SHELL=C:\myshell.exe
-
- in CONFIG.SYS. This should start your program instead of COMMAND.COM.
-
- To load/run a program you'll want to check out spawn() and/or exec() --
- or one of the variants on these (eg. spawnlp(), execl() etc.)
-
- >2) I want to read in a directory from the HD. How do I do this (other than
- > searching whether "a" ,"aa", "aaa" ... "zzzzzzzz.zzz" exists) ?
-
- Check out the opendir(), readdir(), and closedir() functions in
- dirent.h. If your compiler doesn't have these (BC 3.0 is getting a
- little old ;-) then look at the Borland routines findfirst(),
- findnext().
-
- >3) I wrote a graphics library for C++ (mostly using ASM), which is very fast,
- > but when I include it, my program won't terminate, it will restart after
- > the 'return 0' in the main program, even if I have a program like:
- > initgraph() closegraph() return 0...
- > Is there anyone who would help me debug this thing (should know about ASM)
-
- You're on your own there... :-(
-
-
- Phil Staite, team OS/2
- internet: pstaite@vnet.ibm.com internal: pstaite@rchland
-
-